home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1985 April
/
Ahoy_Magazine_85-04_1985_Double_L.d64
/
hop around 64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
4KB
|
115 lines
1 y=1:print"[147]"
2 goto80
3 e=+1:pokea,32:pokea+h,32:a=a+e:ifpeek(a+80)=32then7
4 goto37
5 e=-1:pokea,32:pokea+h,32:a=a+e:ifpeek(a+80)=32then7
6 goto37
7 l=.:restore
8 pokea,32:pokea+h,32:l=l+1:a=a+h:ifpeek(a+80)=4then12
9 ifa=bora>1944then49
10 readtw,t:pokea,.:pokea+h,1:pokes+1,tw:pokes,t:goto8
12 ifl>=9then55
13 pokes+1,0:pokes,0:goto37
14 restore:fortt=1to21:readtw,t:next:bj=bj+1
15 readtw,t:pokea,32:pokea+40,32:ifpeek(a-40)=4thena=a+1:goto7
17 pokes+1,tw:pokes,t:ifa<1064thena=a+1:goto7
18 ifpeek(a-40)<7then55
19 a=a-40:pokea,.:pokea+40,1:goto15
20 poke53281,1:poke53280,2:print"[147]hop around!"
21 print"[163][163][163][163][163][163][163][163][163][163][163]":print"by kevin dewey"
22 print"use joystick[157][157][157][157][157][157][157][157][157][157][157][157]for movement"
23 print"[144]hit any key"
24 goto600
26 pokevv+21,0:goto58
27 gu=1:pokeb-40,2:goto55
30 a=1797:b=1065:s=54272:pokes+5,200:pokes+6,200:pokes+24,15:ll=56320:c=1142
31 mz=7:fort=stos+24:poket,0:next:pokes+24,15:pokes+3,8:pokes+2,0:pokes+5,144
32 h=40:print"dddddddddddddddddddddddddddddddddddddddd";
34 pokeb,2:pokeb+40,3:d=peek(ll):ifd=123then5
35 pokec-40,6:pokec,mz:ifd=119then3
36 ifd=111then14
37 pokea,.:pokea+40,1:ifpeek(a+80)=32then7
38 m=int(rnd(1)*9)+1:ifm=9andp=.then42
39 ifa=bthen27
40 ifp=1thenreturn
41 goto34
42 n=int(rnd(1)*37)+1144:pokes+6,243:pokes+1,4:pokes,112
43 p=1:foro=nton+840step40:pokeo,5:gosub34:pokeo,32:o=o+40:ifo=aoro=a+40then55
44 pokes+4,65:ifpeek(o+40)=4thenpokes+4,129:o=o+1
45 pokes+4,33:next:pokes+1,0:pokes,0
46 p=0:poken,32:n=.:pokeb,32:pokeb+40,32:b=b+y:ifpeek(b)=6orb>1102then51
47 ifmz=8thenmz=7:goto34
48 ifmz=7thenmz=8:goto34
49 ifa=bthen64
50 goto55
51 restore:la=1062:lp=1904:x=33:pokes+2,100:pokes+3,100:poke1102,32:poke1142,32
52 fort=latolpstep+39:poket,7:poket-40,6:poket-1,3:poket-41,2:readw,tt:pokes+4,x
53 pokes+1,w:pokes,tt:pokes+4,17:poket,32:poket-40,32:poket-1,32:poket-41,32
54 pokes+4,65:next:goto150
55 rr=2:pokea,32:pokea+40,9:pokea+41,10:ifgu=1thenpokeb,3:gu=.:pokes+5,200
56 pokes+6,100:pokes+4,129:pokes+1,33:pokes,135:fort=15to0step-1:pokes+24,t
57 fortt=1to30:next:next:pokes+1,0:pokes,0:fort=1to500:next:poke53272,21:goto26
58 print"[147][144]you";:gosub63:print"[157][157][157]bombed";:gosub63
59 print"[157][157][157]out!":gosub63:print"hit any key"
61 ifpeek(197)<>64thenrun
62 goto61
63 fort=1to1000:next:return
64 pokeb-1,.:pokeb+39,1:restore
65 fort=bto1970step+42:poket,2:poket+40,3:readtt,tw:pokes,tw:pokes+1,tt
66 pokes+4,33:fortg=1to15:next:poket,32:poket+40,32:pokes+4,17:next
67 fort=7to0step-1:poke2040+t,0:pokes+1,14:pokes,239:pokes+4,129:pokes+24,t*2
68 pokes+4,33:next:pokes+1,0:pokes,0:pokevv+21,0
69 rr=1:poke53272,21:print"[147][156]you did it!":print" you saved sweet doris"
70 print" with only";bj;" jumps!"
71 ifbj>jbthenprint"a[157]new[157][157][157]high!!":jb=bj
75 print"hit any key."
76 ifpeek(197)<>64thenrun
77 goto76
78 stop
80 poke52,48:poke56,48:clr:goto100
81 fori=1to74:readj:next:fori=12288to12377:readj:pokei,j:next
82 data14,24,13,78,12,143,11,218,11,48,10,143,9,247,9,104,8,225,8,97,7,233,7,119
83 data7,12,6,167,6,71,5,237,5,152,5,71,4,251,4,180,4,112,4,112,4,180,4,251,5,71
84 data5,152,5,237,6,71,6,167,7,12,7,119,7,233,8,97,8,225,9,104,9,247,10,143
85 data60,126,219,255,231,126,66,60,24,255,189,189,60,36,36,102,126,90,126,255
86 data129,195,102,60,24,153,189,255,126,255,36,102,254,170,254,0,0,0,0,0,28,28
87 data28,28,8,62,28,8,60,126,106,247,189,169,60,24,189,254,120,60,124,71,33,96
88 data222,127,30,60,62,226,132,6,56,126,221,245,245,221,126,56,112,65,127,248
89 data248,127,65,112,0,0
90 goto200
91 poke53272,(peek(53272)and240)+12:print"[147]":fort=1to990:print" ";:next
92 print"[154]dddddddddddddddddddddddddddddddddddddddd";
93 print"dddddddddddddddddddddddddddddddddddddddd";
94 print"dddddddddddddddddddddddddddddddddddddddd";
95 print"dddddddddddddddddddddddddddddddddddddddd";
96 pokevv+23,25:pokevv+29,13:pokevv+27,255:pokevv,18:pokevv+1,208:pokevv+4,125
97 pokevv+5,229:pokevv+2,80:pokevv+3,229:pokevv+6,90:pokevv+7,208
98 pokevv+8,60:pokevv+9,208:pokevv+10,160:pokevv+11,229:pokevv+21,255:goto30
99 stop
100 poke56334,peek(56334)and254:poke1,peek(1)and251
110 fori=0to511:pokei+12288,peek(i+53248):next
120 poke1,peek(1)or4
130 poke56334,peek(56334)or1
140 goto81
150 pokes+1,0:pokes,0:pokea,32:pokea+40,9:pokea+41,10:fort=1to50:print:next
155 x=54272
157 pokevv+27,.
160 poke53272,21:forqw=1944to1184step-78:pokeqw,8:pokeqw+x,0:pokeqw+1,1
165 pokeqw+1+x,0:forsr=1to400:next:next:pokevv+21,0:goto58
200 rem sprites!!!!
210 vv=53248:poke2040,209:poke2041,209:poke2042,209:poke2043,209
212 poke2044,209:poke2045,209
213 pokevv+43,8:pokevv+44,10
215 pokevv+39,10:pokevv+40,10:pokevv+41,2:pokevv+42,8
220 poke2046,196:fortt=13376to13438:readt:pokett,t:next
300 data0,0,0,0,0,0,0,16,0,0,56,0,0,120,0,0,124,0,0,254,0,1,255,0,7,119,0,15,175
310 data128,31,223,128,27,254,192,21,253,240,30,251,248,63,127,120,63,188,252
320 data127,225,252,252,255,252,219,255,254,231,255,255,255,255,255
500 goto20
600 y=1
601 geta$:ifa$=""then601
610 ifa$="[133]"then620
611 goto91
620 y=y+1:ify>5theny=1
630 print"level ";y:goto601